import Vue from 'vue'
import Router from 'vue-router'
import User from "../view/sys/User";
import Layout from '../view/layout/Index'
import Employee from "../view/hr/Employee";

Vue.use(Router) // 注册router

export default new Router({
  routes: [
    {
      path: '/user',
      name: 'User',
      component: User
    },{
        path:'/layout',
        name:'Layout',
        component: Layout,
        children:[
          {
            path:'user',
            name:'User1',
            component:User
          },{
            path:'emp',
            name:'Emp',
            component:Employee
          }
        ]
    }
  ]
})
